﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WF_ExpenseChainConfig.aspx.cs" MasterPageFile="~/index.Master" Inherits="xManagerWebApp.AdminCompany.WF_ExpenseChainConfig" %>


<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
        <fieldset>
        <legend>Create a new expense approval chain</legend>
        <asp:Label runat="server" id="label1">Choose the number of levels on this new chain</asp:Label>
        <asp:TextBox ID="nrLevels" runat="server" MaxLength="1" Width="30px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfv_nrLevels" ControlToValidate="nrLevels" runat="server" Text="Insira valor [1..9]"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="rev_nrLevels" ControlToValidate="nrLevels" runat="server" ValidationExpression="\d{1}" Text="Insira valor [1..9]"></asp:RegularExpressionValidator>
        <asp:HiddenField ID="levels" Value="-1" runat="server" />
        
        <br />
        <asp:Button ID="Start" runat="server" Text="Start!" OnClick="StartConfig" />
        
        <br />
            
        <asp:ListBox ID="DepartamentList" runat="server" Height="224px" Width="296px" 
            Visible="false"></asp:ListBox>
        <asp:DropDownList ID="ChainLevelOptions" runat="server" Visible="false"></asp:DropDownList>
        <asp:Button ID="AddDepButton" runat="server" Text="Add" OnClick="AddDep" Visible="false" />
        
        <br />
        <br />        
         
        <asp:PlaceHolder ID="ChainTree" runat="server" Visible="false"></asp:PlaceHolder>
        
        <br />
        <asp:Label ID="lb_ChainName" runat="server" Text="Nome: " Visible="false"></asp:Label>
        <asp:TextBox ID="tb_ChainName" runat="server" Visible="false"></asp:TextBox>
        <asp:Button ID="SaveTreeButton" runat="server" Text="Save" OnClick="SaveTree" Visible="false" CssClass="button form" />
        </fieldset>
   </asp:Content>
        



